package com.oocl.service.impl;

import com.oocl.dao.MerchantDao;
import com.oocl.dao.impl.MerchantDaoImpl;
import com.oocl.pojo.Merchant;
import com.oocl.service.MerchantManager;

public class MerchantManagerImpl implements MerchantManager {
	private MerchantDao merchantDao = null;
	
	public MerchantManagerImpl(){
		merchantDao = new MerchantDaoImpl();
	}
	
	
	@Override
	public int addMerchant(Merchant m) {
		int n = merchantDao.addMerchant(m);	
		return n;
	}

	@Override
	public Merchant findOneMerchant(String mName) {
		Merchant merchant = merchantDao.findOneMerchant(mName);
		return merchant;
	}

	@Override
	public int updateMerchant(Merchant m) {
		int n = merchantDao.updateMerchant(m);
		return n;
	}

}
